package com.xyh;

import org.apache.http.Consts;
import org.apache.http.HttpResponse;
import org.apache.http.client.methods.HttpPost;
import org.apache.http.entity.StringEntity;
import org.apache.http.impl.client.CloseableHttpClient;
import org.apache.http.impl.client.HttpClients;
import org.apache.http.util.EntityUtils;

public class DecryptMain {
    public static void main(String [] args)throws  Exception{
        CloseableHttpClient closeableHttpClient= HttpClients.createDefault();
        HttpPost post=new HttpPost("http://localhost:8911/decrypt");
        //        StringEntity entity=new StringEntity("f8b49bb31faeb37562e4febe7d6f7d30e2258b282323837eae0e70f0536cd8ed", Consts.UTF_8);
        StringEntity entity=new StringEntity("AQBDuVTEHrWT4Ob0Ism2T9DLQ/HvF/wFxuOntPnni1qm1tBlXCCQ8soJymVEMEOXq/K6uI8XOxqUbtM6f1KysPEh4i4X8J/BuJ83nUiYjaqNOdHapnpCP3xqnL15MUIvmrgr/Ih9R0Tf9k53LWJCnyYZw3XCIFTSs5fJ2nbrNHt+/tGiKTMnq23UeSB+3qpfkgXGE2HsHzIWySbB4cPOUZ1mnRoWI8loue1Nm6YeCkR8HlDr32kZ/Fv6Gz7RzvHMOVj9Sh1/i7ueKqI9RWDDWwuBRqP4a8tLBN788Rm9xYXNrezoMe+YIr9LFGDCvn1Gr0i8BuuQaxh86uibbFgFA1PBduG02d7x50NiWiU0Oyj3jNNaTQCSWxZcRbL4+vhdm7o=", Consts.UTF_8);
        post.setEntity(entity);
        HttpResponse response=closeableHttpClient.execute(post);
        System.out.print(EntityUtils.toString(response.getEntity()));
    }
}
